package main

import "fmt"

func main() {
	var n = 109
	// 查看类型
	fmt.Printf("%T\n", n)
	fmt.Printf("%v\n", n)
	fmt.Printf("%b\n", n)
	fmt.Printf("%d\n", n)
	fmt.Printf("%o\n", n)
	fmt.Printf("%x\n", n)

	var s = "hello word"
	fmt.Printf("字符串%s\n", s)
	fmt.Printf("字符串：%#v\n", s)
	var s string
	fmt.Scan(&s)
	fmt.Println("用户输入的内容是：", s)
	var (
		name  string
		age   int
		class string
	)
	fmt.Scanf("%s %d %s\n", &name, &age, &class)
	fmt.Println("用户输入的内容是：", name, age, class)
	fmt.Scanln(&name, &age, &class)
}
